package cn.zjweu.dao;

import cn.zjweu.domain.Dish;
import cn.zjweu.domain.UserCart;

import java.util.List;

public interface CartDao {

    UserCart findCartByUserAndDish(int userId, int dishId);

    boolean editCountInCart(UserCart userCart);

    boolean saveToCart(UserCart userCart);

    boolean clearCartByUserIdOrDishId(int userId, int dishId);

    List<Dish> findCartListByUserId(int userId);

    boolean clearCartByUserId(int userId);

    boolean delByUserIdAndDList(Integer userId, String delCart);
}
